package com.triones.biz.infra.entity.file;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 文件存储对象 tr_infra_file_content
 *
 * @author triones
 * 2023-09-22
 */
@TableName(value = "tr_infra_file_content")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class FileContentDO extends BaseEntity {

    private static final long serialVersionUID = 1L;
    /**
     * 编号
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 配置编号
     */
    private Long configId;
    /**
     * 文件路径
     */
    private String path;
    /**
     * 文件内容
     */
    private byte[] content;
    /**
     * 是否删除 0否 1是
     */
    @TableLogic
    private Integer deleted;
}
